package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.entity.MdmStage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * （主数据）项目分期表 Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2019-09-24
 */
public interface StageMapper extends BaseMapper<MdmStage> {
	
	MdmStage selectByFId(@Param("fid") String projectFid,@Param("isDel") int isDel);

    void insertBatch(@Param("list") List<MdmStage> list);

    void updateByProjectFid(@Param("stage")MdmStage stage);
    
    String selectByStageCode(@Param("stageCode")String stageCode);

    List<MdmStage> selectStagesByprojectFid(@Param("fid") String projectFid);

}
